

<script setup lang="ts">
import { useCounterStore } from '../store/counter';
const counter = useCounterStore();
</script>

<template>
  <div class="demo">
    <p>store: {{counter.count}}</p>
    <p>double store: {{counter.doubleCount}}</p>
    <button @click="counter.increment">+</button>
  </div>
</template>
